//Source file: D:\\test\\com\\ce\\pms\\charge\\model\\PeriodLogDomain.java

package com.ce.pms.charge.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:帐期日志 关联数据表:FEE_PERIOD_LOG
 */
@Entity
@Table(name = "FEE_PERIOD_LOG")
public class PeriodLogDomain implements IDomainObject{

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "PERIOD_LOG_ID")
	private Long keyword;

	/**
	 * 收费周期
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PERIOD_ID", nullable = false)
	private PeriodDomain period;

	/**
	 * 流程
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FLOW_DEF_ID", nullable = false)
	private FlowDefDomain flowDef;

	/**
	 * 业务开始时间
	 */
	@Column(name = "START_TIME", nullable = false)
	private Date startTime;

	/**
	 * 业务结束时间
	 */
	@Column(name = "END_TIME", nullable = false)
	private Date endTime;

	/**
	 * 操作人
	 */
	@Column(name = "CREATOR", nullable = false)
	private Long creator;

	public PeriodLogDomain(PeriodDomain period, FlowDefDomain flowDef, Date startTime, Date endTime, Long creator) {
		super();
		this.period = period;
		this.flowDef = flowDef;
		this.startTime = startTime;
		this.endTime = endTime;
		this.creator = creator;
	}

	/**
	 * @roseuid 48757D150399
	 */
	public PeriodLogDomain() {

	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public FlowDefDomain getFlowDef() {
		return flowDef;
	}

	public void setFlowDef(FlowDefDomain flowDef) {
		this.flowDef = flowDef;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public PeriodDomain getPeriod() {
		return period;
	}

	public void setPeriod(PeriodDomain period) {
		this.period = period;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
}
